package com.ilop.sthome.mvp.contract.mine;

import androidx.fragment.app.Fragment;

import com.example.common.mvp.IBasePresenter;
import com.example.common.mvp.IBaseView;
import com.ilop.sthome.data.greenDao.UserInfoBean;

import java.util.List;

/**
 * @author skygge
 * @Date on 2019-09-25.
 * GitHub：javofxu@github.com
 * email：skygge@yeah.net
 * description：
 */
public interface MainContract {

    interface IView extends IBaseView{

        void showLoginName(String loginName);

        void showNickName(String nickname);

        void showUserImage(String uri);

        void showToastMsg(String msg);

        void loginOut();
    }

    interface IPresent extends IBasePresenter<IView>{

        List<Fragment> getFragmentList();

        void refreshRequestUserInfo();

        void onQueryUserInfo(String identifyId);

        void getUserInfo(UserInfoBean userInfoBean);

        void onLoginOut();
    }
}
